import request from '@/utils/request';

// 创建字典类型
export function createOrEditApi(postBody) {
  let url = process.env.VUE_APP_SYS_SERVICE + 'api/sysEnumDictionaryType/create';
  if (postBody.objectId) {
    url = process.env.VUE_APP_SYS_SERVICE + 'api/sysEnumDictionaryType/update';
  }
  return request({
    url: url,
    method: 'post',
    data: postBody
  });
}